package com.yanqu.road.entity.util;

import com.alibaba.fastjson.JSON;
import com.yanqu.road.entity.DataObject;

/**
 * @author duli
 * @version 1.0
 * @date 2020/8/31 17:48
 * @Description 推送数据返回结果
 */
public class ResponseUtil{
    /**返回Code*/
    private int state;

    /**返回消息*/
    private String msg;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
